<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="./js/memberShip_title.js"></script>
<title>title.jsp</title>
</head>
<body>
<%
	String sessionMid=(String)session.getAttribute("sessionMid");//object type라 형변한..sessionMid=null;java
/* 	sessionMid= "kkk"; */
	if(sessionMid==null){
%>
<form name='frm' method='post' action='./Community/login.jsp'>
<div id="title_m" style="font-size: small;" align="right">
	<label>아 이 디 </label><input type='text' size='6' name='mid' style="margin-top : 10px;"/>
	<label style="margin-left : 5px;">비밀번호 </label><input type='password' size='6' name='pwd'/>
	<input type='button' value='로그인' id='btnLogin' style="margin-right: 20px;"/>
	<label><a href="index1.jsp?inc=./Community/memberShip.jsp">회원가입 </a></label>/
	<label><a href="index1.jsp?inc=./Community/m_search_id.jsp">아이디 찾기 </a></label>/
	<label><a href="index1.jsp?inc=./Community/m_search_pw.jsp">비밀번호 찾기 </a></label>
</div>
</form>
<%}else{ %>
<div align="right">
[<%=session.getAttribute("sessionMid") %>님 방가..]
<input type='button' value='로그아웃' id='btnLogout' align="right" style="margin-left : 10px;"/>
</div>
<%} %>
	
<script>login();</script>
</html>